<?php

namespace app\controller\index;

use app\result\UploadResult;
use think\App;

class Upload extends BaseIndex
{

    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->objResult = new UploadResult();
    }

    //图片上传
    public function image()
    {
        data_exit_json($this->objResult->image($this->user_id));
    }
}
